package com.ganzalang.gmall.dubboproviderservice.service.user;

import com.ganzalang.gmall.dubboproviderapi.rpc.user.UserRpcService;
import com.ganzalang.gmall.dubboproviderapi.rpc.user.model.UserResult;
import com.ganzalang.gmall.dubboproviderapi.rpc.user.param.UserRpcParam;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;

/**
 * @author Ganzalang
 * @description 用户rpc接口实现类
 * @Date 2021/8/1 23:17
 */
@Slf4j
@DubboService(version = UserRpcService.VERSION)
public class UserRpcServiceImpl implements UserRpcService {

    @Override
    public UserResult getUserInfo(UserRpcParam param) {
        UserResult userResult = new UserResult();
        userResult.setId(param.getId());
        userResult.setName(param.getName());
        return userResult;
    }
}
